package cn.gson.fengboot.model.dao;

import cn.gson.fengboot.model.pojos.Dneed;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface DneedDao extends CrudRepository<Dneed,Integer> {

    List<Dneed> findByBusId(Integer busId);

    @Query(value = "select * from  dneed d  where d.need_theme=?1 and d.need_people=?2", nativeQuery = true)
    List<Dneed> findByNeedTheme(String needTheme, String getbuspeople);
}
